Use a loop to draw the red circles. The loop uses condition, so only the number of balloons we want are drawn.
Here is a program skeleton:
' Draw 10 Red Balloons SCREEN 12 ' start up graphics COLOR 4 ' set the pen color to red ' LET BALLOON = 1 DO WHILE BALLOON <= 10 ..... draw the balloon .... LET BALLOON = BALLOON + 1 LOOP ' END
The idea is:
To draw 10 balloons, count each balloon as it is drawn. Start the count at 1 and stop it at 10.
The program does just that by counting from 1 to 10:
LET
statement.DO WHILE
statement.LET
statement
in the loop body.The only thing left out is the detail of drawing each balloon. What if:
CIRCLE (100, 100), 25
replaced the line:
..... draw the balloon ....
Would the program now be complete?